<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'Products\Controller\Products' => 'Products\Controller\ProductsController',
        ),
    ),
    // The following section is new and should be added to your file
    'router' => array(
        'routes' => array(
            'products' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/products[/:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Products\Controller\Products',
                        'action'     => 'index',
                    ),
                ),
            ),
			'add-category' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/add-category[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Products\Controller\Products',
						'action'     => 'addCategory',
					),
				),
			),
			'change-status-orders' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/change-status-orders[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Products\Controller\Products',
						'action'     => 'changeStatusOrders',
					),
				),
			),
			'view-history' => array(
				'type'    => 'segment',
				'options' => array(
					'route'    => '/view-history[/:id]',
					'constraints' => array(	
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'Products\Controller\Products',
						'action'     => 'viewHistory',
					),
				),
			),
			'buying-product' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/buying-product[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'buying-product',
					),
				),
			),
			'products-list' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/products-list[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'products-list',
					),
				),
			),
			'add-product-next' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/add-product-next[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'add-product-next',
					),
				),
			),
			'sales' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/sales[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'sales',
					),
				),
			),
			'get-prices-on-product' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/get-prices-on-product[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'get-prices-on-product',
					),
				),
			),
			'add-price-on-product' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/add-price-on-product[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'addPriceOnProduct',
					),
				),
			),
			'all-categories-list' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/all-categories-list[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'allCategoriesList',
					),
				),
			),
			'all-country-list' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/all-country-list[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'allCountryList',
					),
				),
			),
			'all-industry-list' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/all-industry-list[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'allIndustryList',
					),
				),
			),
			'bid-on-users' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/bid-on-users[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'bidOnProducts',
					),
				),
			),
			'view-bid-details' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/view-bid-details[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'viewBidDetailes',
					),
				),
			),
			'all-bid-list' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/all-bid-list[/:id]',
					'constraints' => array(
						'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'allBidsList',
					),
				),
			),
			'reports-list' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/reports-list[/:id]',
					'constraints' => array(
						'action'  => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'      => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'reports-list',
					),
				),
			),
			'buy-on-products' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/buy-on-products[/:id]',
					'constraints' => array(
						'action'  => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'      => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'buyOnProducts',
					),
				),
			),
			'buy-received-product' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'       => '/buy-received-product[/:id]',
					'constraints' => array(
						'action'  => '[a-zA-Z][a-zA-Z0-9_-]*',
						'id'      => '[a-zA-Z][a-zA-Z0-9_-]*',
					),
					'defaults'    => array(
						'controller'    => 'Products\Controller\Products',
						'action'        => 'buyReceivedProducts',
					),
				),
			),
		),
	),     
    'view_manager' => array(
        'template_path_stack' => array(
            'products' => __DIR__ . '/../view',
        ),
		'strategies' => array(
            'ViewJsonStrategy',
        ),
    ),
	
);
?>